﻿using System;
using System.Collections;
using System.Text;
using UnityEngine;
using Common;

namespace Common
{
    public class Define
    {
        public const int TerrainLayer = 10;
        public const int PlayerLayer = 8;
        public const int MonsterLayer = 11;
        public const int TerrainAlphaLayer = 12;
        public const int TerrainLayerMask = 1 << TerrainLayer;
        public const string PlayerRootFirstName = "Robot_";

        public static GameMode Mode = GameMode.None;
        public static MonoBehaviour Mono;
        public static bool DataInit = false;
        public static Camera MainCamera;
        public static bool NoNetwork = false;
        public static void Init(MonoBehaviour mono)
        {
            Mono = mono;
            DataInit = true;
            MainCamera = mono.camera;
            Physics.IgnoreLayerCollision(PlayerLayer, PlayerLayer);
            Physics.IgnoreLayerCollision(PlayerLayer, MonsterLayer);
            Physics.IgnoreLayerCollision(MonsterLayer, MonsterLayer);
            Application.targetFrameRate = 45;
            Log.OutputLog = false;
        }
    }
}

